<template>
  <img src="../assets/creatbg.png" class="img_bg" />
  <div class="box">
    <!-- <div class="title">工单ID：{{ store.basicData.id }}</div> -->
    <div class="ful">
      <div class="left">日期</div>
      <div class="right">{{ store.basicData.createtime }}</div>
    </div>
    <div class="ful">
      <div class="left">客户名称</div>
      <div class="right">{{ store.basicData.hospital_name }}</div>
    </div>
    <div class="ful">
      <div class="left">科室</div>
      <div class="right">{{ store.department_name }}</div>
    </div>
    <div class="ful" v-if="store.basicData.pinpai">
      <div class="left">类别</div>
      <div class="right">{{ store.basicData.pinpai.name || '-' }}</div>
    </div>
    <div class="ful" v-if="store.basicData.leibie">
      <div class="left">品牌</div>
      <div class="right">{{ store.basicData.leibie.name || '-' }}</div>
    </div>
    <div class="ful" v-if="store.basicData.xinghao">
      <div class="left">型号</div>
      <div class="right">{{ store.basicData.xinghao.name }}</div>
    </div>
    <div class="ful">
      <div class="left">序列号</div>
      <div class="right">{{ store.basicData.serial }}</div>
    </div>
    <div class="ful">
      <div class="left">软件版本</div>
      <div class="right">{{ store.basicData.software_version }}</div>
    </div>
    <div class="ful">
      <div class="left">附件</div>
      <div class="right">{{ store.basicData.enclosure || '-' }}</div>
    </div>
    <!-- 
    <div class="ful">
      <div class="left">状态</div>
      <div
        class="right"
        :style="{
          color:
            store.basicData.status == 0
              ? '#F4554A'
              : store.basicData.status == 1
              ? '#52C41A'
              : '#FFAB00',
        }"
      >
        {{
          store.basicData.status == 0
            ? '保修中'
            : store.basicData.status == 1
            ? '正常'
            : '已停用'
        }}
      </div>
    </div> -->
  </div>
</template>
<script setup>
import { basicData } from '../store/data.js';
const store = basicData();
</script>
